/**
 * Copyright 2015-2016 com.eyaomall
 * All rights reserved.
 *
 * @project
 * @author jipengfei
 * @version 1.0
 * @date 2016-03-07
 */
package com.eyaomall.wxmall.service;

import java.util.List;

import com.eyaomall.wxmall.model.po.Member;
import com.lycheeframework.core.cmp.kit.IHTTPObject;
import com.lycheeframework.core.cmp.kit.Pages;

/**
 * 注册会员接口
 * @author jipengfei
 *
 */
public interface MemberService {

	/**
	 * 分页查询注册会员信息
	 * @param member
	 * @param httpObj
	 * @return
	 */
	public Pages<List<Member>> page(Member member,IHTTPObject httpObj);
	
	/**
	 * 修改注册会员信息
	 * @param member
	 * @return
	 */
	public boolean update(Member member);
	
	/**
	 * 查询注册会员信息
	 * @param member
	 * @return
	 */
	public Member query(Member member);
	
	/**
	 * 根据店铺ID和微信公众号ID查询唯一值
	 * @param openId
	 * @param shopId
	 * @return
	 */
	public Member queryById(String openId,Integer shopId);
	
	/**
	 * 删除注册会员信息
	 * @param member
	 * @return
	 */
	public boolean delete(Integer memberId);
	
	/**
	 * 新增注册会员信息
	 * @param member
	 * @return
	 */
	public Integer create(Member member);
}
